This section contains information about how to create a new database table in the design view.
このセクションではデザインビューでの新規データベーステーブルの作成法について解説します。
Open the database file of the database where you want a new table. Click the Tables icon. Choose Create Table in Design View to create a new table.
新しいテーブルを作成するデータベースのデータベースファイルを開きます。テーブル アイコンをクリックします。新しいテーブルを作成する場合は、デザインビューでテーブルを作成する を選択します。
In the Design view, you can now create the fields for your table.
デザインビューでデータフィールドを定義します。
Enter new fields in rows from top to bottom. Click the Field Name cell and enter a field name for each data field.
新しいデータフィールドは、上から下へ入力していきます。各行の左端に フィールド名 を入力します。
Include a "primary key" data field. Base needs a primary key to be able to edit the table contents. A primary key has unique contents for each data record. For example, insert a numerical field, right-click the first column, and choose Primary Key from the context menu. Set AutoValue to "Yes", so Base can automatically increment the value for each new record.
「プライマリキー」データフィールドを含めます。Base がテーブルの内容を編集するときは、プライマリキーが必要です。プライマリキーは、それぞれのデータレコードに対して、固有の内容を持っています。たとえば、数値フィールドを挿入して、最初の列を右クリックし、コンテキストメニューから プライマリキー を選択します。自動入力値 を「はい」に設定すると、Base は、それぞれの新しいレコードの値を自動増加します。
In the next cell to the right, define the Field Type. When you click in the cell, you can select a field type in the combo box.
右隣のセルをクリックしてリストボックスを開き、フィールドの種類 を選択します。
![]() | Each field can only accept data corresponding to the specified field type. For example, it is not possible to enter text in a number field. Memo fields in dBASE III format are references to internally-managed text files which can hold up to 64KB text.
各フィールドは、指定されたフィールドタイプに対応するデータだけを受け入れることができます。たとえば、数値フィールドにテキストを入力することはできません。dBASE III 形式のメモフィールドは、64KB までのテキストを保持できる内部管理されたテキストファイルへの参照です。 |
You can enter an optional Description for each field. The text of the description will appear as a tip on the column headings in the table view.
どのデータフィールドにも任意に 概要 が入力できます。このテキストは、テーブルのフィールド名をマウスボタンで指した時に表示されます。
Enter properties for each selected data field. Depending on the database type, some input facilities may not be available.
選択したすべてのデータフィールドに属性を設定します。データベースの種類によっては、指定できない属性もあります。
In the Default value box, enter the default contents for every new record. This contents can be edited later.
標準値 に新しいレコードに表示する内容を入力します。このテキストはサンプルとして表示されます。
In the Entry required box, specify whether or not the field may remain empty.
入力が必要 ではこのデータフィールドが空白でもいいかかどうかを指定します。
For the Length box, a combo box may be shown that provides the available choices.
長さ では、フィールドの種類別に入力可能な長さが指定できます。